<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><link rel="shortcut icon" href="/favicon.ico"/>
<title><?php if(isset($seotitle)): ?><<?php echo ($seotitle); ?>><?php else: ?>[title]<?php endif; ?> - 网站管理系统</title>
<link type="text/css" rel="stylesheet" href="/Public/admin/style/default.css" />
<link type="text/css" rel="stylesheet" href="/Public/admin/plugin/calendar/calendar-blue.css" />
<script type="text/javascript" src="/Public/admin/js/jquery-1.7.min.js"></script>
<script type="text/javascript" src="/Public/admin/plugin/artDialog/jquery.artDialog.js?skin=default"></script>
<script type="text/javascript" src="/Public/admin/plugin/artDialog/plugins/iframeTools.source.js"></script>
<script type="text/javascript" src="/Public/admin/plugin/formValidator/formValidator-4.1.3.js"></script>
<script type="text/javascript" src="/Public/admin/plugin/formValidator/formValidatorRegex.js"></script>
<script type="text/javascript" src="/Public/admin/plugin/calendar/calendar.js"></script>
<script type="text/javascript" src="/Public/admin/plugin/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="/Plugin/Uploadify/getuploadify.js"></script>
<script type="text/javascript" src="/Public/admin/js/reset.js"></script>
<script type="text/javascript" src="/Public/admin/js/master.js"></script>

</head><body><div class="mainWrap">    <!--标题-->    <div class="mainWrapHeader">    	<h1 class="mainWrapTit"><?php echo ($seotitle); ?> <a href="<?php echo U('add');?>" class="btn btn_edit"><span>添加</span></a></h1>    </div>    <!--标题-->        <div class="mainWrapBd">                <form action="<?php echo U('batchDo');?>" method="post" name="doForm" onsubmit="return batchConfirm(this);">        <!--列表-->        <table cellpadding="0" cellspacing="0" border="0" class="stdtable stdtablelist">            <colgroup>                <col style="width:50px;" />                <col style="width:50px;" />                <col />                <col />                <col />                <col style="width:150px;" />                <col style="width:160px;" />                <col style="width:120px;" />            </colgroup>            <thead>                <tr>                    <th class="center"><input type="checkbox" class="checkall" /></th>                    <th class="center">ID</th>                    <th>管理员账号</th>                    <th>管理员称呼</th>                    <th>管理组</th>                    <th>最后一次登录IP</th>                    <th>最后一次登录时间</th>                    <th>操作</th>                </tr>            </thead>            <tbody>            	<?php if(is_array($pages['lists'])): $i = 0; $__LIST__ = $pages['lists'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$fo): $mod = ($i % 2 );++$i;?><tr>                    <td align="center"><input type="checkbox" name="id[]" value="<?php echo ($fo['id']); ?>" <?php if($fo['id'] == 1): ?>disabled="disabled"<?php endif; ?> /></td>                    <td align="center"><?php echo ($fo['id']); ?></td>                    <td><?php echo ($fo['username']); ?></td>                    <td><?php echo ($fo['nickname']); ?></td>                    <td>                    <?php $roles = array(); foreach ($fo['Roles'] as $item) { $roles[] = $item['name']; } ?>                    <?php echo (implode(',', $roles)); ?>                    </td>                    <td><?php echo ($fo['last_logined_ip']); ?></td>                    <td>                    <?php if($fo['last_logined_at'] == 0): ?>暂未登录                    <?php else: ?>                    <?php echo (format_date($fo['last_logined_at'])); endif; ?>                    </td>                    <td>                        <a href="<?php echo U('edit',array('id'=>$fo['id']));?>">修改</a> &nbsp;                     </td>                </tr><?php endforeach; endif; else: echo "" ;endif; ?>                <?php if($pages['total'] == 0): ?><tr>                    <td align="center" class="data-nothing" colspan="9">暂无相关信息</td>                </tr><?php endif; ?>            </tbody>        </table>        <!--列表-->                <!--工具-->        <div class="tableTools clearfix">            <div class="tableOptions fl">            </div>            <div class="fr">                <?php echo ($pages['show']); ?>            </div>        </div>        <!--工具-->        </form>            </div>    </div></body></html>